From e45312e960f5140ed87e957dfabd04c4460b3f9a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 14 Jan 2009 19:41:30 +0000 Subject: [PATCH] Revert r45671 "Added "__\" magic word to eat up all whitespace and newlines to the next non-whitespace character, to facilitate writing readable template code where whitespace is significant." Unplanned syntax change. --- RELEASE-NOTES | 3 --- includes/parser/Parser.php | 6 ------ 2 files changed, 9 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9ca6a6b2c5..ae49192bff 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -31,9 +31,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN passing "uploadmsg" parameter in the url * (bug 9947) Add PROTECTIONLEVEL parser function to return the protection level for the current page for a given action -* Added "__\" magic word to eat up all whitespace and newlines to the next - non-whitespace character, to facilitate writing readable template code where - whitespace is significant. * (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit. * (bug 16852) padleft and padright now accept multiletter pad characters diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 40b5b971df..7fcfb90a35 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -327,12 +327,6 @@ class Parser $text = $this->internalParse( $text ); $text = $this->mStripState->unstripGeneral( $text ); - # To make wikitext easier to read where significant - # whitespace is a problem, '__\' will be eaten up along with - # all whitespace and newlines that follow it, up to the next - # non-whitespace character. (Compare 'dnl' from m4.) - $text = preg_replace('/__\\\\\s*/', '', $text); - # Clean up special characters, only run once, next-to-last before doBlockLevels $fixtags = array( # french spaces, last one Guillemet-left -- 2.20.1